// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
// 导入路由
import router from './router'

// 导入方法
import '@/assets/util/rem'
import VueAwesomeSwiper from 'vue-awesome-swiper'

// 导入awesome字体图标
import { library } from '@fortawesome/fontawesome-svg-core'
import { fas } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon, FontAwesomeLayers, FontAwesomeLayersText } from '@fortawesome/vue-fontawesome'

// 导入统一样式
import '@/assets/style/common.css'
import '@/assets/style/animation.css'
import 'swiper/dist/css/swiper.css'

library.add(fas)

Vue.use(VueAwesomeSwiper)
Vue.config.productionTip = false

// 挂载awesome
Vue.component('font-awesome-icon', FontAwesomeIcon)
Vue.component('font-awesome-layers', FontAwesomeLayers)
Vue.component('font-awesome-layers-text', FontAwesomeLayersText)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App)
})
